package com.timothy.remote.core;

import java.io.Serializable;

import org.crazycake.shiro.AuthCachePrincipal;

public class UserEntity implements Serializable, AuthCachePrincipal {

	private static final long serialVersionUID = 1L;

	private String phone;
	private String nickname;
	private Integer userId;

	public UserEntity() {
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	public String getAuthCacheKey() {
		return phone;
	}
}
